import api from "../libs/api.js";

export function GetSchools() {
    return api({
        url:'/schools',
        method: 'GET',
    })
}

export function CreateSchool(data) {
    return api({
        url:'/schools',
        method: 'POST',
        data
    })
}

export function UpdateSchool(id, data) {
    return api({
        url:'/schools/' + id,
        method: 'PUT',
        data
    })
}

export function DeleteSchool(id) {
    return api({
        url:'/schools/' + id,
        method: 'DELETE'
    })
}
